<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	<%@ taglib prefix="s" uri="/struts-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" ></meta>
<link type="text/css" rel="stylesheet" media="screen" href="jquery/cmxform.css" ></link>
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="jquery/jquery.validate.js" charset="utf-8"></script>
<title>网络办公系统</title>
<style type="text/css">
<!--
* {
	overflow: hidden;
	font-size: 9pt;
}

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url(images/bg.gif);
	background-repeat: repeat-x;
}

#button1_search{
	background:url(images/login.gif);
	height: 34px;
	width: 95px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	cursor:pointer;
}
-->
</style>
<script type="text/javascript">
	$().ready(function() {
		
		$("#loginform").validate({
			rules:{
				'userLogin.loginname':{
					required: true
					//minlength: 2,
					//maxlength: 5
				},
				'userLogin.password':{
					required: true
					//minlength: 6
				}
			},
			messages:{
				'userLogin.loginname':{
					required: "请填写姓名"
					//minlength: "字符长度不能小于2个字符",
					//maxlength: "字符长度不能大于5个字符"
				},
				'userLogin.password':{
					required: "请填写密码"
					//minlength: "字符长度不能小于6个字符"
				}
			}
		});
	});
	</script>
</head>

<body>
	<form action="login.action" method="post" id="loginform">
		<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="561" style="background: url(images/lbg.gif)">
								<table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
									<tr>
										<td height="238" style="background: url(images/login01.jpg)">&nbsp;</td>
									</tr>
									<tr>
										<td height="190">
											<table width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="208" height="190" style="background: url(images/login02.jpg)">&nbsp;</td>
													<td width="518" style="background: url(images/login03.jpg)">
														<table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
															<tr>
																<td colspan="3" align="center">
																	<font color="red" >&nbsp;<s:property value="msg"/></font>
																</td>
															</tr>
															<tr>
																<td width="40" height="50">
																	<img src="images/user.gif" width="30" height="30"></img>
																</td>
																<td width="38" height="50">用户</td>
																<td width="242" height="50">
																	<input type="text" name="userLogin.loginname" id="username" value="<s:property value="userLogin.loginname"/>" style="width: 164px; height: 32px; line-height: 34px; background: url(images/inputbg.gif) repeat-x; border: solid 1px #d1d1d1; font-size: 9pt; font-family: Verdana, Geneva, sans-serif;"></input>
																</td>
															</tr>
															<tr>
																<td height="50">
																	<img src="images/password.gif" width="28" height="32"></img>
																</td>
																<td height="50">密码</td>
																<td height="50">
																	<input type="password" name="userLogin.password" id="pwd" style="width: 164px; height: 32px; line-height: 34px; background: url(images/inputbg.gif) repeat-x; border: solid 1px #d1d1d1; font-size: 9pt;"></input>
																</td>
															</tr>
															<tr>
																<td height="40">&nbsp;</td>
																<td height="40">&nbsp;</td>
																<td height="60">
																	<input id="button1_search" type="submit" value="" name="提交"></input>
																</td>
															</tr>
														</table>
													</td>
													<td width="214" style="background: url(images/login04.jpg)">&nbsp;</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td height="133" style="background: url(images/login05.jpg)">&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
